from pyecharts.charts import Line
from pyecharts.options import TitleOpts

# 全局配置项
# https://pyecharts.org/#/zh-cn/intro

# 准备数据
x_data = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
y_data_2 = [220, 182, 191, 234, 290, 330, 310]

line = Line()
line.add_xaxis(x_data)
line.add_yaxis('serve2',y_data_2)


line.set_global_opts(
    title_opts=TitleOpts(title="GDP展示",pos_top="center",pos_bottom="50%")
)

line.render()